package com.fmdj.bff.driver.feign;

import com.fmdj.bff.driver.controller.form.CalculateIncentiveFeeForm;
import com.fmdj.bff.driver.controller.form.CalculateOrderChargeForm;
import com.fmdj.bff.driver.controller.form.CalculateProfitsharingForm;
import com.fmdj.common.util.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.HashMap;

@FeignClient("fmdj-fee-calculator")
public interface FeeServiceApi {


    @PostMapping("/fee/charge/calculateOrderCharge")
    CommonResult calculateOrderCharge(@RequestBody @Valid CalculateOrderChargeForm form);


    @PostMapping("/fee/award/calculateIncentiveFee")
    CommonResult calculateIncentiveFee(@RequestBody @Valid CalculateIncentiveFeeForm form);

    @PostMapping("/fee/profitsharing/calculateProfitsharing")
    CommonResult calculateProfitsharing(@RequestBody @Valid CalculateProfitsharingForm form);
}
